package com.simple.util.common;

import java.util.LinkedHashMap;
import java.util.Map;

public class Constants {
	//tbresources package
    public final static String TBRESOURCES_PACKAGE_MESSAGE = "message";
    public final static String TBRESOURCES_PACKAGE_WEB = "web";
    
    //map in tbresources
    public final static String TBRESOURCES_PACKAGE_MAP_STATUS = "map_status";
    public final static String TBRESOURCES_PACKAGE_MAP_CURRENCY = "map_currency";
    public final static String TBRESOURCES_PACKAGE_MAP_PARTNER_TYPE = "map_partner_type";
    public final static String TBRESOURCES_PACKAGE_MAP_APPLICATION_TYPE = "map_application_type";
    public final static String TBRESOURCES_PACKAGE_MAP_BOOLEAN = "map_boolean";
    public final static String TBRESOURCES_PACKAGE_MAP_WHOLE_STATUS = "map_whole_status";
    public final static String TBRESOURCES_PACKAGE_MAP_USER_TYPE = "map_user_type";
    
    //alert message , then go page
    public final static String SYSTEM_ALERT_GOPAGE_HOME = "home";
    public final static String SYSTEM_ALERT_GOPAGE_BACK = "back";
    public final static String SYSTEM_ALERT_GOPAGE_CLOSE = "close";
    public final static String SYSTEM_ALERT_GOPAGE_LOGOUT = "logout";
    
    //use in url parameter
    public static final String SPLIT_URL_ADDRESS="*";
    
    
    public final static String SYSTEM_USER_ID = "SYSTEM";

    
    public final static String ORGANIZATION_TYPE_SYSTEM="S";
    public final static String ORGANIZATION_TYPE_ENTERPRISE="E";
    public final static String ORGANIZATION_TYPE_PARTNER="P";
    
    public final static String  GROUP_RIGHT_FLAG_AUTHORIZATION="A";
    public final static String  GROUP_RIGHT_FLAG_OPERATION="O";
    
    //group info level
    public final static String  GROUP_LEVEL_FOUR="4";
    public final static String  GROUP_LEVEL_THREE="3";
    public final static String  GROUP_LEVEL_TWO="2";
    public final static String  GROUP_LEVEL_ONE="1";
    
    
    //longin user  current sessionUserBean
    public final static String  CURRENT_SESSION_USERBEAN="sessionUserBean";
    
    //cusrrent languange
    public final static String  SITE_LANGUAGE="siteLanguage";

    
    public final static String STATE_YES = "Y";
    public final static String STATE_NO = "N";
    
    public final static String STATE_PENDDING = "P";
    public final static String STATE_REFUSE = "R";
    public final static String STATE_NORMAL = "1";
    public final static String STATE_STOP = "0";


    // random password's length
    public final static Integer RANDOM_PASSWORD_LENGTH_MAX = 8;
    public final static Integer RANDOM_PASSWORD_LENGTH_MIN = 8;
    
    
    //logger record operate flag
    public final static String LOGGER_OPERATE_FLAG_ADD = "1";
    public final static String LOGGER_OPERATE_FLAG_DELETE = "2";
    public final static String LOGGER_OPERATE_FLAG_UPDATE = "3";
    public final static String LOGGER_OPERATE_FLAG_START = "4";
    public final static String LOGGER_OPERATE_FLAG_STOP = "5";
    public final static String LOGGER_OPERATE_FLAG_AUDIT = "6";
    
    //user type  in('SY','SN','EY','EN','PY','PN')
    public final static String USER_TYPE_SY = "SY";
    public final static String USER_TYPE_SN = "SN";
    public final static String USER_TYPE_EY = "EY";
    public final static String USER_TYPE_EN = "EN";
    public final static String USER_TYPE_PY = "PY";
    public final static String USER_TYPE_PN = "PN";
    
    //EC prefix
    public final static String PREFIX_EC = "EC";
    
    /************************************************************************************************
     * 
     * Datax Web constants
     * 
     ***********************************************************************************************/
    
    //TransProperty's fiCatagory
    public final static String TRANS_PROPERTY_FICATAGORY_TRANSFERSWAY = "1";
    public final static String TRANS_PROPERTY_FICATAGORY_TRANSFERSSTATUS = "2";
    public final static String TRANS_PROPERTY_FICATAGORY_MESSAGEFORMAT = "3";
    public final static String TRANS_PROPERTY_FICATAGORY_MESSAGECHARACTER = "4";
    public final static String TRANS_PROPERTY_FICATAGORY_MESSAGETYPE = "5";
    public final static String TRANS_PROPERTY_FICATAGORY_SERVETYPE = "6";
    public final static String TRANS_PROPERTY_FICATAGORY_UNITROLE = "7";
    public final static String TRANS_PROPERTY_FICATAGORY_FLATROLE = "8";
    public final static String TRANS_PROPERTY_FICATAGORY_MOVEMENTTYPE = "9";
    public final static String TRANS_PROPERTY_FICATAGORY_INFORMTYPE = "10";
    public final static String TRANS_PROPERTY_FICATAGORY_NODETYPE = "11";
    public final static String TRANS_PROPERTY_FICATAGORY_OPERATIONTYPE = "12";
    public final static String TRANS_PROPERTY_FICATAGORY_MESSAGESTATUS = "13";
    public final static String TRANS_PROPERTY_FICATAGORY_INFORMATIONTYPE = "14";
    public final static String TRANS_PROPERTY_FICATAGORY_SERVECODE = "15";
    public final static String TRANS_PROPERTY_FICATAGORY_ACTORTYPE = "16";
    public final static String TRANS_PROPERTY_FICATAGORY_BUSINESSROLE = "17";
    
    public final static String TEMPALTE_STATE_TEMP = "1";
    public final static String TEMPALTE_STATE_SUBMIT = "2";
    public final static String TEMPALTE_STATE_DEL = "3";
    public final static Map<String, String> TEMPLATE_STATE_MAP = new LinkedHashMap<String, String>();
    static{  	
    	TEMPLATE_STATE_MAP.put(TEMPALTE_STATE_TEMP, "暂存");
    	TEMPLATE_STATE_MAP.put(TEMPALTE_STATE_SUBMIT, "提交");
    	TEMPLATE_STATE_MAP.put(TEMPALTE_STATE_DEL, "删除");
    }
    

    public final static Map<String, String> STATE_MAP = new LinkedHashMap<String, String>();    
    static{
    	STATE_MAP.put(STATE_NORMAL, "启用");
    	STATE_MAP.put(STATE_STOP, "停用");
    }
    
    
    public final static String PREFIX_TEMPLATE_ID = "BP";
    
    public final static String PREFIX_NODE_ID = "n";
    
    public final static String PREFIX_ACTIVITY_ID = "a";
    
    // user password's length
    public final static Integer USER_PASSWORD_LENGTH_MAX = 16;
    public final static Integer USER_PASSWORD_LENGTH_MIN = 8;
    
   
}
